﻿using NodeLib.File.Define;
using NodeLib.File.Define.Rename;
using XLib.Base.Ex;
using XLib.Base.VirtualDisk;
using XLib.Node;

namespace NodeLib.File
{
    public class NodeLibManager : INodeLib
    {
        #region 单例

        private NodeLibManager() { }
        public static NodeLibManager Instance { get; } = new NodeLibManager();

        #endregion

        #region INodeLib 属性

        public string Name { get; set; } = "File";

        public string Title { get; set; } = "文件处理";

        #endregion

        #region INodeLib 方法

        public void Init(NodeFactory nodeFactory)
        {
            nodeFactory.RegisterNode<Func_Upper>(Title, "文件", "");
            nodeFactory.RegisterNode<Func_GetFileMD5>(Title, "文件", "");
        }

        public void Clear() { }

        #endregion
    }
}